<!DOCTYPE html>
<html lang="en" style="margin: 0;width: 100%;height: 100%">
<head>
    <meta charset="UTF-8">
    <!--未启用之前，移动模式下元素宽高仍为于浏览器宽高，启用之后才是移动模式手机的宽高-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;">
    <title>Title</title>
    <style>
        .left-wrap {
            width: 20%;
            height: 100%;
            background-color: coral;
            display: inline-block;
        }

        .right-wrap {
            width: 80%;
            height: 100%;
            background-color: lightpink;
            display: inline-block;
        }
    </style>
</head>
<body style="height: 100%;width: 100%;margin: 0">
<div style="font-size: 0;width: 100%;height: 100%">
    <div class="left-wrap"></div>
    <div class="right-wrap"></div>
</div>
</body>
</html>